package enregistrement;

import moteur.Impl_Moteur;

import command.Command;

public class Impl_Memento implements Memento {

	private Impl_Moteur state;
	private char text;
	private int position;
	private Command command;

	public Impl_Memento(Impl_Moteur moteur, Command command) {
		this.state = moteur;
		this.command = command;

	}

	public Impl_Memento(Impl_Moteur moteur, int position, Command command) {
		this.state = moteur;
		this.position = position;
		this.command = command;

	}

	public Impl_Memento(Impl_Moteur moteur, char text, Command command) {
		this.state = moteur;
		this.text = text;
		this.command = command;
		System.out.println("le nouveau memento,text insere :" + this.text);

	}

	public char getText() {
		return text;
	}

	public void setText(char text) {
		this.text = text;
	}

	public Impl_Moteur getEtatMoteur() {
		return state;
	}

	public void setEtatMoteur(Impl_Moteur state) {
		this.state = state;
	}

	public Command getCommand() {
		return command;
	}

}
